#ifndef __Comm_HPP__
#define __Comm_HPP__

#include <iostream>
#include <unistd.h>
#include <fcntl.h>

void SetNonBlock(int fd)
{
    int fl = ::fcntl(fd,F_GETFL);
    if(fl < 0)
    {
        return;
    }
    fcntl(fd,F_SETFL , fl |O_NONBLOCK );
}




#endif